Skip to content

Customize expired preview pages - #15

Merged
johnnygreco merged 1 commit into
mainfrom
johnny/chore/custom-preview-404
Jul 20, 2026
Merged

Customize expired preview pages#15
johnnygreco merged 1 commit into
mainfrom
johnny/chore/custom-preview-404

Conversation

@johnnygreco

Copy link
Copy Markdown
Collaborator

Summary

  • add a repository-owned Zensical 404 template
  • explain when a pull request preview has expired or been removed
  • route the return link back to the production project site
  • treat theme overrides as documentation preview inputs

Why

After preview teardown, GitHub Pages correctly returns HTTP 404 but renders the documentation site's branded fallback. The default message made the removed preview look like a partially available site. This change makes the expired-preview state explicit while retaining a useful general missing-page response.

Validation

  • python3 tests/test_render_dev_notes.py
  • scripts/build-docs.sh
  • strict Zensical rebuild after the final template edit
  • YAML parsing and actionlint for both preview workflows
  • Node validation of normal and expired-preview template behavior
  • local Zensical server with / and /pr-preview/pr-13/ reachable

Signed-off-by: Johnny Greco <jogreco@nvidia.com>
@johnnygreco
johnnygreco marked this pull request as ready for review July 20, 2026 21:52
@github-actions

github-actions Bot commented Jul 20, 2026

Copy link
Copy Markdown

Documentation preview

The preview has been removed.

@johnnygreco
johnnygreco merged commit c05f354 into main Jul 20, 2026
7 checks passed
@johnnygreco
johnnygreco deleted the johnny/chore/custom-preview-404 branch July 20, 2026 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant